package com.sbr.esbmonitor.tests.builders;

import com.sbr.esbmonitor.model.xml.servers.ServerType;


public class ServerTypeBuilder {

	private int id;
	private String label;
	private String hostName;
	
	public ServerTypeBuilder() {
	}
	
	public ServerTypeBuilder id(int id) {
		this.id = id;
		return this;
	}
	
	public ServerTypeBuilder label(String label) {
		this.label = label;
		return this;
	}
	
	public ServerTypeBuilder hostName(String hostName) {
		this.hostName = hostName;
		return this;
	}
	
	public ServerType build() {
		ServerType serverType = new ServerType();
		serverType.setId(id);
		serverType.setLabel(label);
		serverType.setHostName(hostName);
		return serverType;
	}
}
